
package com.jf.cloud.multishop.feign;

import com.jf.cloud.api.multishop.feign.ShopWalletFeignClient;
import com.jf.cloud.common.response.ServerResponseEntity;
import com.jf.cloud.multishop.service.ShopWalletService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.v3.oas.annotations.Hidden;

/**
 * @author zz
 * @date 2022/6/30 16:55
 */
@RestController
@Hidden
public class ShopWalletFeignController implements ShopWalletFeignClient {

    @Autowired
    private ShopWalletService shopWalletService;

    @Override
    public ServerResponseEntity<Long> getSettlementAmountByShopId(Long shopId) {
        return ServerResponseEntity.success(shopWalletService.getSettlementAmountByShopId(shopId));
    }
}
